import GetCurrentPages = Page.GetCurrentPages

export default () => {
  const pages = getCurrentPages<GetCurrentPages>()
  const currentPage: any = pages[pages.length - 1]
  return {
    pages: pages,
    currentPage: currentPage,
    currentPath: '/' + currentPage.route,
    options: currentPage.options
  }
}
